package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // 设置按钮点击事件
        findViewById(R.id.btn_uc1).setOnClickListener(v -> {
            startActivity(new Intent(MainActivity.this, Uc1Activity.class));
        });

        findViewById(R.id.btn_uc2).setOnClickListener(v -> {
            startActivity(new Intent(MainActivity.this, Uc2Activity.class));
        });

        findViewById(R.id.btn_uc3).setOnClickListener(v -> {
            startActivity(new Intent(MainActivity.this, Uc3Activity.class));
        });

        findViewById(R.id.btn_uc4).setOnClickListener(v -> {
            startActivity(new Intent(MainActivity.this, Uc4Activity.class));
        });

        findViewById(R.id.btn_uc5).setOnClickListener(v -> {
            startActivity(new Intent(MainActivity.this, Uc5Activity.class));
        });
    }
}